package com.luo.backend.dto;

/**
 * 认证响应DTO
 * 包含用户信息和JWT token
 */
public class AuthResponse {
    
    private UserResponse user;
    private String token;
    private Long expiresIn; // token过期时间（秒）
    
    // 构造函数
    public AuthResponse() {}
    
    public AuthResponse(UserResponse user, String token, Long expiresIn) {
        this.user = user;
        this.token = token;
        this.expiresIn = expiresIn;
    }
    
    // Getters and Setters
    public UserResponse getUser() {
        return user;
    }
    
    public void setUser(UserResponse user) {
        this.user = user;
    }
    
    public String getToken() {
        return token;
    }
    
    public void setToken(String token) {
        this.token = token;
    }
    
    public Long getExpiresIn() {
        return expiresIn;
    }
    
    public void setExpiresIn(Long expiresIn) {
        this.expiresIn = expiresIn;
    }
}